package com.shop.cereshop.business.dao.business;

import com.shop.cereshop.business.page.role.PlatformUserRole;
import com.shop.cereshop.commons.domain.business.CereBusinessUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereBusinessUserRoleDAO {
    int insert(CereBusinessUserRole record);

    int insertSelective(CereBusinessUserRole record);

    void deleteByUserId(@Param("businessUserId") Long businessUserId);

    List<PlatformUserRole> findRolesByUserId(@Param("businessUserId") Long businessUserId);
}